#include <iostream>
#include "webserver.h"
int main(int argc,char *argv[])
{
    if(argc!=2)
    {
        std::cout<<"Using ==> ./Server [Port]"<<std::endl;
        return -1;
    }
    #ifdef THREAD_POLL
        WebServer web(atoi(argv[1]),3,60000,false,12,false,1,1024);
        web.Start();        
    #endif

    #ifdef PROCESS_POLL
        process_poll *web = process_poll::create(atoi(argv[1]),3,60000,false,8,false,1,1024);
        web->run();
    #endif
    return 0;
}